package com.ray.friendslist.request;

import java.util.ArrayList;

import org.apache.http.message.BasicNameValuePair;

import com.ray.friendslist.content.CommonTask;
import com.ray.friendslist.content.ParamCallback;
import com.ray.friendslist.http.HttpManager;

public class PostRequest extends CommonTask<String> {

	public PostRequest(ParamCallback<String> paramCallback, String methodName,
			ArrayList<BasicNameValuePair> params) {
		super(paramCallback);
		this.methodName = methodName;
		this.params = params;
		// TODO Auto-generated constructor stub
	}

	private String methodName;
	private ArrayList<BasicNameValuePair> params;

	@Override
	public String convert(String s) throws Exception {
		// TODO Auto-generated method stub
		return HttpManager.getInstance().postRequest(methodName, params);
	}

}
